package com.guoranhao.business.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EsSpuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public EsSpuExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSpuIdIsNull() {
            addCriterion("spu_id is null");
            return (Criteria) this;
        }

        public Criteria andSpuIdIsNotNull() {
            addCriterion("spu_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpuIdEqualTo(Long value) {
            addCriterion("spu_id =", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdNotEqualTo(Long value) {
            addCriterion("spu_id <>", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdGreaterThan(Long value) {
            addCriterion("spu_id >", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("spu_id >=", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdLessThan(Long value) {
            addCriterion("spu_id <", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdLessThanOrEqualTo(Long value) {
            addCriterion("spu_id <=", value, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdIn(List<Long> values) {
            addCriterion("spu_id in", values, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdNotIn(List<Long> values) {
            addCriterion("spu_id not in", values, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdBetween(Long value1, Long value2) {
            addCriterion("spu_id between", value1, value2, "spuId");
            return (Criteria) this;
        }

        public Criteria andSpuIdNotBetween(Long value1, Long value2) {
            addCriterion("spu_id not between", value1, value2, "spuId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andTaxCodeIsNull() {
            addCriterion("tax_code is null");
            return (Criteria) this;
        }

        public Criteria andTaxCodeIsNotNull() {
            addCriterion("tax_code is not null");
            return (Criteria) this;
        }

        public Criteria andTaxCodeEqualTo(String value) {
            addCriterion("tax_code =", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeNotEqualTo(String value) {
            addCriterion("tax_code <>", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeGreaterThan(String value) {
            addCriterion("tax_code >", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tax_code >=", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeLessThan(String value) {
            addCriterion("tax_code <", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeLessThanOrEqualTo(String value) {
            addCriterion("tax_code <=", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeLike(String value) {
            addCriterion("tax_code like", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeNotLike(String value) {
            addCriterion("tax_code not like", value, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeIn(List<String> values) {
            addCriterion("tax_code in", values, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeNotIn(List<String> values) {
            addCriterion("tax_code not in", values, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeBetween(String value1, String value2) {
            addCriterion("tax_code between", value1, value2, "taxCode");
            return (Criteria) this;
        }

        public Criteria andTaxCodeNotBetween(String value1, String value2) {
            addCriterion("tax_code not between", value1, value2, "taxCode");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameIsNull() {
            addCriterion("secondary_name is null");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameIsNotNull() {
            addCriterion("secondary_name is not null");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameEqualTo(String value) {
            addCriterion("secondary_name =", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameNotEqualTo(String value) {
            addCriterion("secondary_name <>", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameGreaterThan(String value) {
            addCriterion("secondary_name >", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameGreaterThanOrEqualTo(String value) {
            addCriterion("secondary_name >=", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameLessThan(String value) {
            addCriterion("secondary_name <", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameLessThanOrEqualTo(String value) {
            addCriterion("secondary_name <=", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameLike(String value) {
            addCriterion("secondary_name like", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameNotLike(String value) {
            addCriterion("secondary_name not like", value, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameIn(List<String> values) {
            addCriterion("secondary_name in", values, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameNotIn(List<String> values) {
            addCriterion("secondary_name not in", values, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameBetween(String value1, String value2) {
            addCriterion("secondary_name between", value1, value2, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andSecondaryNameNotBetween(String value1, String value2) {
            addCriterion("secondary_name not between", value1, value2, "secondaryName");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNull() {
            addCriterion("category_id is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNotNull() {
            addCriterion("category_id is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdEqualTo(Long value) {
            addCriterion("category_id =", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotEqualTo(Long value) {
            addCriterion("category_id <>", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThan(Long value) {
            addCriterion("category_id >", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
            addCriterion("category_id >=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThan(Long value) {
            addCriterion("category_id <", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
            addCriterion("category_id <=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIn(List<Long> values) {
            addCriterion("category_id in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotIn(List<Long> values) {
            addCriterion("category_id not in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdBetween(Long value1, Long value2) {
            addCriterion("category_id between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
            addCriterion("category_id not between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andMarketPriceIsNull() {
            addCriterion("market_price is null");
            return (Criteria) this;
        }

        public Criteria andMarketPriceIsNotNull() {
            addCriterion("market_price is not null");
            return (Criteria) this;
        }

        public Criteria andMarketPriceEqualTo(BigDecimal value) {
            addCriterion("market_price =", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceNotEqualTo(BigDecimal value) {
            addCriterion("market_price <>", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceGreaterThan(BigDecimal value) {
            addCriterion("market_price >", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("market_price >=", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceLessThan(BigDecimal value) {
            addCriterion("market_price <", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("market_price <=", value, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceIn(List<BigDecimal> values) {
            addCriterion("market_price in", values, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceNotIn(List<BigDecimal> values) {
            addCriterion("market_price not in", values, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("market_price between", value1, value2, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andMarketPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("market_price not between", value1, value2, "marketPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceIsNull() {
            addCriterion("lower_price is null");
            return (Criteria) this;
        }

        public Criteria andLowerPriceIsNotNull() {
            addCriterion("lower_price is not null");
            return (Criteria) this;
        }

        public Criteria andLowerPriceEqualTo(BigDecimal value) {
            addCriterion("lower_price =", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceNotEqualTo(BigDecimal value) {
            addCriterion("lower_price <>", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceGreaterThan(BigDecimal value) {
            addCriterion("lower_price >", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("lower_price >=", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceLessThan(BigDecimal value) {
            addCriterion("lower_price <", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("lower_price <=", value, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceIn(List<BigDecimal> values) {
            addCriterion("lower_price in", values, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceNotIn(List<BigDecimal> values) {
            addCriterion("lower_price not in", values, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lower_price between", value1, value2, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andLowerPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lower_price not between", value1, value2, "lowerPrice");
            return (Criteria) this;
        }

        public Criteria andSpuStatusIsNull() {
            addCriterion("spu_status is null");
            return (Criteria) this;
        }

        public Criteria andSpuStatusIsNotNull() {
            addCriterion("spu_status is not null");
            return (Criteria) this;
        }

        public Criteria andSpuStatusEqualTo(Integer value) {
            addCriterion("spu_status =", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusNotEqualTo(Integer value) {
            addCriterion("spu_status <>", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusGreaterThan(Integer value) {
            addCriterion("spu_status >", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("spu_status >=", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusLessThan(Integer value) {
            addCriterion("spu_status <", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusLessThanOrEqualTo(Integer value) {
            addCriterion("spu_status <=", value, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusIn(List<Integer> values) {
            addCriterion("spu_status in", values, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusNotIn(List<Integer> values) {
            addCriterion("spu_status not in", values, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusBetween(Integer value1, Integer value2) {
            addCriterion("spu_status between", value1, value2, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andSpuStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("spu_status not between", value1, value2, "spuStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusIsNull() {
            addCriterion("publish_status is null");
            return (Criteria) this;
        }

        public Criteria andPublishStatusIsNotNull() {
            addCriterion("publish_status is not null");
            return (Criteria) this;
        }

        public Criteria andPublishStatusEqualTo(Integer value) {
            addCriterion("publish_status =", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotEqualTo(Integer value) {
            addCriterion("publish_status <>", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusGreaterThan(Integer value) {
            addCriterion("publish_status >", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("publish_status >=", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusLessThan(Integer value) {
            addCriterion("publish_status <", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusLessThanOrEqualTo(Integer value) {
            addCriterion("publish_status <=", value, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusIn(List<Integer> values) {
            addCriterion("publish_status in", values, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotIn(List<Integer> values) {
            addCriterion("publish_status not in", values, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusBetween(Integer value1, Integer value2) {
            addCriterion("publish_status between", value1, value2, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("publish_status not between", value1, value2, "publishStatus");
            return (Criteria) this;
        }

        public Criteria andPublishDateIsNull() {
            addCriterion("publish_date is null");
            return (Criteria) this;
        }

        public Criteria andPublishDateIsNotNull() {
            addCriterion("publish_date is not null");
            return (Criteria) this;
        }

        public Criteria andPublishDateEqualTo(Date value) {
            addCriterion("publish_date =", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotEqualTo(Date value) {
            addCriterion("publish_date <>", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateGreaterThan(Date value) {
            addCriterion("publish_date >", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateGreaterThanOrEqualTo(Date value) {
            addCriterion("publish_date >=", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateLessThan(Date value) {
            addCriterion("publish_date <", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateLessThanOrEqualTo(Date value) {
            addCriterion("publish_date <=", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateIn(List<Date> values) {
            addCriterion("publish_date in", values, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotIn(List<Date> values) {
            addCriterion("publish_date not in", values, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateBetween(Date value1, Date value2) {
            addCriterion("publish_date between", value1, value2, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotBetween(Date value1, Date value2) {
            addCriterion("publish_date not between", value1, value2, "publishDate");
            return (Criteria) this;
        }

        public Criteria andMainImageIsNull() {
            addCriterion("main_image is null");
            return (Criteria) this;
        }

        public Criteria andMainImageIsNotNull() {
            addCriterion("main_image is not null");
            return (Criteria) this;
        }

        public Criteria andMainImageEqualTo(String value) {
            addCriterion("main_image =", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageNotEqualTo(String value) {
            addCriterion("main_image <>", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageGreaterThan(String value) {
            addCriterion("main_image >", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageGreaterThanOrEqualTo(String value) {
            addCriterion("main_image >=", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageLessThan(String value) {
            addCriterion("main_image <", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageLessThanOrEqualTo(String value) {
            addCriterion("main_image <=", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageLike(String value) {
            addCriterion("main_image like", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageNotLike(String value) {
            addCriterion("main_image not like", value, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageIn(List<String> values) {
            addCriterion("main_image in", values, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageNotIn(List<String> values) {
            addCriterion("main_image not in", values, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageBetween(String value1, String value2) {
            addCriterion("main_image between", value1, value2, "mainImage");
            return (Criteria) this;
        }

        public Criteria andMainImageNotBetween(String value1, String value2) {
            addCriterion("main_image not between", value1, value2, "mainImage");
            return (Criteria) this;
        }

        public Criteria andDetailImagesIsNull() {
            addCriterion("detail_images is null");
            return (Criteria) this;
        }

        public Criteria andDetailImagesIsNotNull() {
            addCriterion("detail_images is not null");
            return (Criteria) this;
        }

        public Criteria andDetailImagesEqualTo(String value) {
            addCriterion("detail_images =", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesNotEqualTo(String value) {
            addCriterion("detail_images <>", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesGreaterThan(String value) {
            addCriterion("detail_images >", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesGreaterThanOrEqualTo(String value) {
            addCriterion("detail_images >=", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesLessThan(String value) {
            addCriterion("detail_images <", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesLessThanOrEqualTo(String value) {
            addCriterion("detail_images <=", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesLike(String value) {
            addCriterion("detail_images like", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesNotLike(String value) {
            addCriterion("detail_images not like", value, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesIn(List<String> values) {
            addCriterion("detail_images in", values, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesNotIn(List<String> values) {
            addCriterion("detail_images not in", values, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesBetween(String value1, String value2) {
            addCriterion("detail_images between", value1, value2, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailImagesNotBetween(String value1, String value2) {
            addCriterion("detail_images not between", value1, value2, "detailImages");
            return (Criteria) this;
        }

        public Criteria andDetailContentIsNull() {
            addCriterion("detail_content is null");
            return (Criteria) this;
        }

        public Criteria andDetailContentIsNotNull() {
            addCriterion("detail_content is not null");
            return (Criteria) this;
        }

        public Criteria andDetailContentEqualTo(String value) {
            addCriterion("detail_content =", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentNotEqualTo(String value) {
            addCriterion("detail_content <>", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentGreaterThan(String value) {
            addCriterion("detail_content >", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentGreaterThanOrEqualTo(String value) {
            addCriterion("detail_content >=", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentLessThan(String value) {
            addCriterion("detail_content <", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentLessThanOrEqualTo(String value) {
            addCriterion("detail_content <=", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentLike(String value) {
            addCriterion("detail_content like", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentNotLike(String value) {
            addCriterion("detail_content not like", value, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentIn(List<String> values) {
            addCriterion("detail_content in", values, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentNotIn(List<String> values) {
            addCriterion("detail_content not in", values, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentBetween(String value1, String value2) {
            addCriterion("detail_content between", value1, value2, "detailContent");
            return (Criteria) this;
        }

        public Criteria andDetailContentNotBetween(String value1, String value2) {
            addCriterion("detail_content not between", value1, value2, "detailContent");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesIsNull() {
            addCriterion("virtual_monthly_sales is null");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesIsNotNull() {
            addCriterion("virtual_monthly_sales is not null");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesEqualTo(Integer value) {
            addCriterion("virtual_monthly_sales =", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesNotEqualTo(Integer value) {
            addCriterion("virtual_monthly_sales <>", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesGreaterThan(Integer value) {
            addCriterion("virtual_monthly_sales >", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesGreaterThanOrEqualTo(Integer value) {
            addCriterion("virtual_monthly_sales >=", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesLessThan(Integer value) {
            addCriterion("virtual_monthly_sales <", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesLessThanOrEqualTo(Integer value) {
            addCriterion("virtual_monthly_sales <=", value, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesIn(List<Integer> values) {
            addCriterion("virtual_monthly_sales in", values, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesNotIn(List<Integer> values) {
            addCriterion("virtual_monthly_sales not in", values, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesBetween(Integer value1, Integer value2) {
            addCriterion("virtual_monthly_sales between", value1, value2, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andVirtualMonthlySalesNotBetween(Integer value1, Integer value2) {
            addCriterion("virtual_monthly_sales not between", value1, value2, "virtualMonthlySales");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeIsNull() {
            addCriterion("pay_overtime is null");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeIsNotNull() {
            addCriterion("pay_overtime is not null");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeEqualTo(Integer value) {
            addCriterion("pay_overtime =", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeNotEqualTo(Integer value) {
            addCriterion("pay_overtime <>", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeGreaterThan(Integer value) {
            addCriterion("pay_overtime >", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_overtime >=", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeLessThan(Integer value) {
            addCriterion("pay_overtime <", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeLessThanOrEqualTo(Integer value) {
            addCriterion("pay_overtime <=", value, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeIn(List<Integer> values) {
            addCriterion("pay_overtime in", values, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeNotIn(List<Integer> values) {
            addCriterion("pay_overtime not in", values, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeBetween(Integer value1, Integer value2) {
            addCriterion("pay_overtime between", value1, value2, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andPayOvertimeNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_overtime not between", value1, value2, "payOvertime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Long value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Long value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Long value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Long value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Long value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Long> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Long> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Long value1, Long value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Long value1, Long value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdIsNull() {
            addCriterion("last_modify_user_id is null");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdIsNotNull() {
            addCriterion("last_modify_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdEqualTo(Long value) {
            addCriterion("last_modify_user_id =", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdNotEqualTo(Long value) {
            addCriterion("last_modify_user_id <>", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdGreaterThan(Long value) {
            addCriterion("last_modify_user_id >", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("last_modify_user_id >=", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdLessThan(Long value) {
            addCriterion("last_modify_user_id <", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdLessThanOrEqualTo(Long value) {
            addCriterion("last_modify_user_id <=", value, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdIn(List<Long> values) {
            addCriterion("last_modify_user_id in", values, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdNotIn(List<Long> values) {
            addCriterion("last_modify_user_id not in", values, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdBetween(Long value1, Long value2) {
            addCriterion("last_modify_user_id between", value1, value2, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andLastModifyUserIdNotBetween(Long value1, Long value2) {
            addCriterion("last_modify_user_id not between", value1, value2, "lastModifyUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}